﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BudgetManager
{
    class BudgetCalculator
    {
        private decimal monthlyIncome;
        private decimal rent;
        private decimal utilities;
        private decimal internet;
        private decimal cellPhone;
        private decimal carInsurance;
        private decimal gas;

        public decimal Calculate(decimal monthlyIncome, decimal rent, decimal utilities, decimal internet, decimal cellPhone, decimal carInsurance, decimal gas)
        {
            decimal total = 0.00M;
            this.monthlyIncome = monthlyIncome;
            this.rent = rent;
            this.utilities = utilities;
            this.internet = internet;
            this.cellPhone = cellPhone;
            this.carInsurance = carInsurance;
            this.gas = gas;

            total = monthlyIncome - (rent + utilities + internet + cellPhone + carInsurance + gas);
            return total;
        }
    }
}
